package proxy;

import net.sf.cglib.proxy.Enhancer;

public class ArithmeticDaoCglibProxyFactory {
    private static ArithmeticDaoCGLIBProxy arithmeticDaoCGLIBProxy=new ArithmeticDaoCGLIBProxy();

    public static <T> T crate(Class<T> target){
        Enhancer enhancer=new Enhancer();
        enhancer.setCallback(arithmeticDaoCGLIBProxy);
        enhancer.setSuperclass(target);
        return (T) enhancer.create();
    }

}
